/**
 * Created by wujun on 2016/8/4
 */
angular.module('xyrhyddcx.service',[])
  .service('xyrhyddcxService',['$http','appItfAopService','$timeout',function($http,appItfAopService,$timeout){
    var params={
        "xyrhyddOrderData":[],
        "queryXyrhyddOrder":{
          "rows":"4",//每页返回行数
          "page":"0",//第几页
          "moreData":true
        },
        "hasOrder":"1"//判断是否有订单
    }
    return{
      getParams:function() {
        return params;
      },

      //下拉刷新
      doRefresh:function(params)
      {
        return appItfAopService.do_queryXyrhyddOrderData_req(params)
      },
      getorderQueryParams:function(param){
        params.orderQueryParams=param;
      },
       //上拉加载
      doLoadMore:function(params)
      {
        //console.log('上拉加载');
        return appItfAopService.do_queryXyrhyddOrderData_req(params);
      },
      //查询校园融合预订单
      doQueryXyrhyddOrderData:function(param){
        return appItfAopService.do_queryXyrhyddOrderData_req(param);
      },
      //插入日志
      insertLog:function(param)
      {
        return appItfAopService.do_insertLog_req(param);
      }
    }
  }]);
